#

bs2tab = ../util/bs2tab
phr2bin = ../util/phr2bin

tabs_showdir = $(pkglibdir)/im_modules/SWTable
adjs_showdir = $(pkglibdir)/im_modules/SWTable
binsdir = $(pkglibdir)/im_modules/SWTable

tabs_show_DATA =	\
	sw_pinyin.tab	\
	sw_wubizixing.tab

adjs_show_DATA =	\
	sw_pinyin.adj	\
	sw_wubizixing.adj

bins_DATA = 	\
	sw_pinyin.bin	\
	sw_wubizixing.bin

EXTRA_DIST =				\
	$(tabs_show_DATA:.tab=.bs)

$(tabs_show_DATA):
	$(bs2tab) $< -o ./$@ -e UTF-8 -s

$(bins_DATA):
	$(phr2bin) $<

clean-local:
	rm -f $(tabs_show_DATA) $(adjs_show_DATA) $(bins_DATA)

sw_pinyin.tab: sw_pinyin.bs
sw_pinyin.adj: sw_pinyin.bs
sw_pinyin.bin: sw_pinyin.cmn
sw_wubizixing.tab: sw_wubizixing.bs
sw_wubizixing.adj: sw_wubizixing.bs
sw_wubizixing.bin: sw_wubizixing.cmn
